/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.service;

import org.springblade.modules.admin.entity.EstateBuilding;
import org.springblade.modules.admin.vo.EstateBuildingDeptVO;
import org.springblade.modules.admin.vo.EstateBuildingVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.admin.vo.EstateElevatorVO;
import org.springblade.modules.admin.vo.MaintainPlanContentVO;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 物业项目表 服务类
 *
 * @author ysq
 * @since 2022-05-27
 */
public interface IEstateBuildingService extends BaseService<EstateBuilding> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param estateBuilding
	 * @return
	 */
	IPage<EstateBuildingVO> selectEstateBuildingPage(IPage<EstateBuildingVO> page, EstateBuildingVO estateBuilding);

	/**
	 * 详情
	 * @param id
	 * @return
	 */
	EstateBuildingVO detail(Long id);

	/**
	 * 批量归档/还原
	 * @param ids
	 * @param status
	 * @return
	 */
	boolean batchStatus(List<Long> ids, Integer status);

	/**
	 * 项目名称下拉选择数据
	 * @return
	 */
	List<Map<String, Object>> selectName();

	/**
	 * 所属机构下拉选择数据
	 * @return
	 */
	List<Map<String, Object>> selectDept();

	/**
	 * 根据项目id获取项目所属机构
	 * @param buildingIds
	 * @return
	 */
	List<EstateBuildingDeptVO> selectDeptByBuildingIds(String buildingIds);

	/**
	 * 批量分配机构
	 * @param ids
	 * @param deptId
	 * @return
	 */
	boolean batchDept(List<Long> ids, Long deptId);

	/**
	 * 分配机构检验提示
	 * @param ids
	 * @param deptId
	 * @return
	 */
	boolean checkDept(List<Long> ids, Long deptId);

	/**
	 * 统计梯联网关联物业公司
	 * @return
	 */
    Integer estateCompanyCountStatistics();

	/**
	 * 查询物业下电梯维修任务
	 * @param tenantId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
    List<MaintainPlanContentVO> estateMalElevatorPlanList(String tenantId, Date startTime, Date endTime);

	/**
	 * 查询物业下电梯信息列表
	 * @param tenantId
	 * @return
	 */
	List<EstateElevatorVO> estateElevatorList(String tenantId);
}
